package com.xingu.xg.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorEnums {

    ERROR_CREATE(1000, ErrorDescriptionMsg.ERROR_CREATE_MENU),
    ERROR_UPDATE(1001, ErrorDescriptionMsg.ERROR_UPDATE_MENU),
    ERROR_QUERY(1002, ErrorDescriptionMsg.ERROR_QUERY_MENU),
    ERROR_DELETE(1003, ErrorDescriptionMsg.ERROR_DELETE_MENU);

    private Integer code;

    private String message;

    private static class ErrorDescriptionMsg {

        public static final String ERROR_CREATE_MENU = "创建菜单失败";

        public static final String ERROR_UPDATE_MENU = "更新菜单失败";

        public static final String ERROR_QUERY_MENU = "查询菜单失败";

        public static final String ERROR_DELETE_MENU = "删除菜单失败";
    }
}
